*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*logo部分样式*/
#logo{
    width:90%;
    height:100px;
    background-color: red;
    margin:0 auto;
}
#logo h1{
    text-align: center;
    line-height: 100px;
    color:white;
    text-shadow: 0 0 10px white;
}

/*menu部分*/
#menu{
    width:90%;
    height:50px;
    background-color: green;
    margin:0 auto;
}
#menu ul li{
    float:left;
    width:20%;
    list-style: none;
    text-align: center;
    line-height:50px;    
}
#menu ul li a{
    text-decoration: none;
    color:white;
    font-size: 20px;
    display: block;
    transition: 500ms;
}
#menu ul li a:hover{
    background-color: yellow;
    color:green;
}

/*清除浮动*/
.clear{
    clear:both;
}

/*以下为main部分样式*/
#main{
    width:90%;
    height:500px;
    background-color: rgb(214, 237, 42);
    margin:0 auto;
    display: flex;
}

#main .left{
    width:70%;
    background-color: rgb(246, 219, 219);
    height: 400px;
    /*作为四个盒子的父容器，也是flex容器*/
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
#main .right{
    width:30%;
    background-color:rgb(148, 148, 252);
    height:400px;
}
#main .right p{
    color:white;
}
.box1,.box2,.box3,.box4{
    color:white;
    font-size:50px;
}
.box1{
    width: 20%;
    height:100px;
    background-color: red;
    order: -1;
}
.box2{
    width: 20%;
    height:150px;
    background-color: green;
    order: 1;
}
.box3{
    width: 20%;
    height:120px;
    background-color: blue;
    order: 5;
}
.box4{
    width: 20%;
    height:100px;
    background-color: yellow;
    order: 2;
    align-self: flex-start;
}

#footer{
    width:90%;
    height:100px;
    background-color: rgb(255, 0, 0);
    margin:0 auto;
    text-align: center;
    line-height: 100px;
    color:white;
    text-shadow: 0 0 10px white;
}